﻿
using Umbraco.Cms.Web.Model.BackOffice.PropertyEditors;
using System.ComponentModel;
using Umbraco.Cms.Web.Model.BackOffice.Editors;

namespace idseefeld.com.imagecropper
{
	/// <summary>
	/// Image Cropper for Umbraco 5 - released under MIT License
	/// Copyright (c) 2012 Dirk Seefeld
	/// http://imagecropperumbraco5.codeplex.com/
	/// </summary>
	public class ImageCropperV5PreValueModel : PreValueModel
	{
		[DisplayName("Crop Name")]
		public string cropName { get; set; }
		
		[DisplayName("Image Property Alias (e. g. uploadedFile)")]
		public string imagePropertyAlias { get; set; }

		[DisplayName("Aspect Ratio")]
		public bool aspectRatio { get; set; }

		[DisplayName("Show Preview")]
		public bool showPreview { get; set; }

		[DisplayName("Reduced Width/Height ")]
		public int reducedWidthHeight { get; set; }

		[DisplayName("Crop Width")]
		public int cropWidth { get; set; }

		[DisplayName("Crop Height")]
		public int cropHeight { get; set; }

		[DisplayName("JPEG quality")]
		public int quality { get; set; }

		[DisplayName("Position e.g. LT, CM, RB etc.")]
		public string position { get; set; }

		[DisplayName("Show Label")]
		public bool showLabel { get; set; }

		[AllowDocumentTypePropertyOverride]
		public bool IsRequired { get; set; }
	}
}
